<%--
  Created by IntelliJ IDEA.
  User: adminthy
  Date: 2018/6/16
  Time: 23:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="common_head">
    <div id="line1">
        <div id="content">
            <c:if test="${ not empty sessionScope.user}" var="isLogin">
                <a href="#">欢迎[${sessionScope.user.nickname}]回来!</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="${app}/LogoutServlet">退出</a>
            </c:if>
            <c:if test="${ !isLogin }">
                <a href="${app}/login.jsp">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="${app}/regist.jsp">注册</a>
            </c:if>



        </div>
    </div>
    <div id="line2">
        <img id="logo" src="img/head/logo.jpg"/>
        <input type="text" name=""/>
        <input type="button" value="搜 索"/>
        <span id="goto">
			<a id="goto_order" href="#">我的订单</a>
			<a id="goto_cart" href="#">我的购物车</a>
		</span>
        <img id="erwm" src="img/head/qr.jpg"/>
    </div>
    <div id="line3">
        <div id="content">
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="#">全部商品</a></li>
                <li><a href="#">手机数码</a></li>
                <li><a href="#">电脑平板</a></li>
                <li><a href="#">家用电器</a></li>
                <li><a href="#">汽车用品</a></li>
                <li><a href="#">食品饮料</a></li>
                <li><a href="#">图书杂志</a></li>
                <li><a href="#">服装服饰</a></li>
                <li><a href="#">理财产品</a></li>
            </ul>
        </div>
    </div>
</div>